

using System;
using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace CoreCms.Net.Model.Entities
{


    /// <summary>
    ///     产品表
    /// </summary>
    [SugarTable("xrc_products", TableDescription = "产品表")]
    public partial class XcrProducts
    {

        /// <summary>
        /// 产品表
        /// </summary>
        public XcrProducts()
        {
        }
        /// <summary>
        ///   商品ID
        /// </summary>
        [Display(Name = "产品ID")]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public int id { get; set; }


        /// <summary>
        ///    所属店铺id
        /// </summary>
        [Display(Name = "所属店铺id")]
        [Required(ErrorMessage = "请输入{0}")]
        [StringLength(200, ErrorMessage = "{0}不能超过{1}字")]
        public int gid { get; set; }

        /// <summary>
        ///  产品编号
        /// </summary>
        [Display(Name = "产品编号")]
        [Required(ErrorMessage = "请输入{0}")]
        [StringLength(30, ErrorMessage = "{0}不能超过{1}字")]
        public string bn { get; set; }

        /// <summary>
        ///     商品名称
        /// </summary>
        [Display(Name = "商品名称")]
        [Required(ErrorMessage = "请输入{0}")]
        [StringLength(200, ErrorMessage = "{0}不能超过{1}字")]
        public string name { get; set; }

        /// <summary>
        ///     商品简介
        /// </summary>
        [Display(Name = "商品简介")]
        [StringLength(255, ErrorMessage = "{0}不能超过{1}字")]
        public string brief { get; set; }

        /// <summary>
        ///     缩略图
        /// </summary>
        [Display(Name = "缩略图")]
        [StringLength(255, ErrorMessage = "{0}不能超过{1}字")]
        public string image { get; set; }

        /// <summary>
        ///     图集
        /// </summary>
        [Display(Name = "图集")]
        public string images { get; set; }


        /// <summary>
        ///     佣金分配方式
        /// </summary>
        [Display(Name = "佣金分配方式")]
        [Required(ErrorMessage = "请输入{0}")]
        public int productsDistributionType { get; set; }

        /// <summary>
        ///     商品分类
        /// </summary>
        [Display(Name = "产品分类")]
        [Required(ErrorMessage = "请输入{0}")]
        public int goodsCategoryId { get; set; }

        /// <summary>
        ///     商品类别
        /// </summary>
        [Display(Name = "产品类别")]
        [Required(ErrorMessage = "请输入{0}")]
        public int goodsTypeId { get; set; }

        /// <summary>
        ///    产品额度
        /// </summary>
        [Display(Name = "产品额度")]
        [Required(ErrorMessage = "请输入{0}")]
        public int money { get; set; }

        /// <summary>
        ///    产品利率
        /// </summary>
        [Display(Name = "利率")]
        [Required(ErrorMessage = "请输入{0}")]
        public string rate { get; set; }
        /// <summary>
        ///    产品地区
        /// </summary>
        [Display(Name = "产品地区")]
        [Required(ErrorMessage = "请输入{0}")]
        public string area { get; set; }

        /// <summary>
        ///     是否上架
        /// </summary>
        [Display(Name = "是否上架")]
        [Required(ErrorMessage = "请输入{0}")]
        public bool isMarketable { get; set; }

        
        /// <summary>
        ///     商品详情
        /// </summary>
        [Display(Name = "产品要求")]
        public string intro { get; set; }

        /// <summary>
        ///     商品规格序列号存储
        /// </summary>
        [Display(Name = "产品要求")]
        public string spesDesc { get; set; }

        /// <summary>
        ///     评论次数
        /// </summary>
        [Display(Name = "评论次数")]
        [Required(ErrorMessage = "请输入{0}")]
        public int commentsCount { get; set; }

        /// <summary>
        ///     浏览次数
        /// </summary>
        [Display(Name = "浏览次数")]
        [Required(ErrorMessage = "请输入{0}")]
        public int viewCount { get; set; }

        /// <summary>
        ///     购买次数
        /// </summary>
        [Display(Name = "购买次数")]
        [Required(ErrorMessage = "请输入{0}")]
        public int buyCount { get; set; }

      
        /// <summary>
        ///     产品排序
        /// </summary>
        [Display(Name = "产品排序")]
        [Required(ErrorMessage = "请输入{0}")]
        public int sort { get; set; }

        /// <summary>
        ///     标签id逗号分隔
        /// </summary>
        [Display(Name = "标签id逗号分隔")]
        [StringLength(50, ErrorMessage = "{0}不能超过{1}字")]
        public string labelIds { get; set; }

        /// <summary>
        ///     自定义规格名称
        /// </summary>
        [Display(Name = "自定义规格名称")]
        public string newSpec { get; set; }


        /// <summary>
        ///     创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime? createTime { get; set; }

        /// <summary>
        ///     更新时间
        /// </summary>
        [Display(Name = "更新时间")]
        public DateTime? updateTime { get; set; }

        /// <summary>
        ///     是否推荐
        /// </summary>
        [Display(Name = "是否推荐")]
        [Required(ErrorMessage = "请输入{0}")]
        public bool isRecommend { get; set; }

        /// <summary>
        ///     是否热门
        /// </summary>
        [Display(Name = "是否热门")]
        [Required(ErrorMessage = "请输入{0}")]
        public bool isHot { get; set; }

        /// <summary>
        ///     是否删除
        /// </summary>
        [Display(Name = "是否删除")]
        [Required(ErrorMessage = "请输入{0}")]
        public bool isDel { get; set; }
    }
}